<?php

namespace App\Services\Log;

use App\Services\Log\Log\LogLogic;

class Log
{
    /**
     * 生成操作日志
     */
    public function addLog($data)
    {
        ValidateLog::checkValidate($data, ['id', 'name', 'type', 'record']);

        return (new LogLogic())->addLog($data);
    }
}
